import http from './request'

/*******************************车辆管理************************************ */
//获取数据
export const vehicledriverinfoList = (data,current,size) => {
    return http({
        url: '/api/vehicledriverinfo/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// // 删除
// export const vehicleinforemove = (ids) => {
//     return http({
//         url: '/api/vehicleinfo/remove?ids='+ids,
//         method: 'POST',
//     })
// }
// //编辑提交
// export function vehicleinfoSubmit(data){
//     return http({
//         url: '/api/vehicleinfo/submit',
//         method: 'POST',
//         data
//     })
// }
/*******************************承运人信息************************************ */

//获取数据
export const vehiclehaulierinfoList = (data,current,size) => {
    return http({
        url: '/api/vehiclehaulierinfo/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const vehiclehaulierinforemove = (ids) => {
    return http({
        url: '/api/vehiclehaulierinfo/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function vehiclehaulierinfoSubmit(data){
    return http({
        url: '/api/vehiclehaulierinfo/submit',
        method: 'POST',
        data
    })
}

/*******************************车辆信息************************************ */
//获取数据
export const vehicleinfoList = (data,current,size) => {
    return http({
        url: '/api/vehicleinfo/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 

export const vehicleinforemove = (ids) => {
    return http({
        url: '/api/vehicleinfo/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function vehicleinfoSubmit(data){
    return http({
        url: '/api/vehicleinfo/submit',
        method: 'POST',
        data
    })
}
/*******************************行驶记录仪************************************ */
//获取数据
export const vehicledrivingrecorderList = (data,current,size) => {
    return http({
        url: '/api/vehicledrivingrecorder/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const vehicledrivingrecorderremove = (ids) => {
    return http({
        url: '/api/vehicledrivingrecorder/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function vehicledrivingrecorderSubmit(data){
    return http({
        url: '/api/vehicledrivingrecorder/submit',
        method: 'POST',
        data
    })
}
/*******************************车辆报警设置************************************ */
//获取数据
export const vehiclealarmsettingList = (data,current,size) => {
    return http({
        url: '/api/vehiclealarmsetting/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
// 删除
export const vehiclealarmsettingremove = (ids) => {
    return http({
        url: '/api/vehiclealarmsetting/remove?ids='+ids,
        method: 'POST',
    })
}
//编辑提交
export function vehiclealarmsettingSubmit(data){
    return http({
        url: '/api/vehiclealarmsetting/submit',
        method: 'POST',
        data
    })
}
/*******************************超速报警************************************ */
//获取数据
export const vehiclealarmdataList = (data,current,size) => {
    return http({
        url: '/api/vehiclealarmdata/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 
/*******************************车辆行驶记录************************************ */
//获取数据
export const vehiclerecorddataList = (data,current,size) => {
    return http({
        url: '/api/vehiclerecorddata/list?current='+current+'&size='+size,
        method: 'POST',
        data
    })
} 